package com.example.commonlibrary.mvi

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.net_library.net.ApiService
import com.example.net_library.net.service
import kotlinx.coroutines.channels.Channel

open class BaseViewModel<I,S>:ViewModel(){
    val service:ApiService by lazy {
        service()
    }
    val intent by lazy {
        Channel<I>(Channel.UNLIMITED)
    }
    val state by lazy {
        MutableLiveData<S>()
    }
}